package com.rfid.project.model;

import javax.persistence.*;

import biz.core.IdEntity;

import java.util.Date;

@Entity
public class Inbox extends IdEntity {
	
	// 收件人
	@ManyToOne
	@JoinColumn(name = "PersonID")
	private People person;

	// 发件人
	@ManyToOne
	@JoinColumn(name = "SenderID")
	private People sender;

	// 接受时间
	private Date receiveTime;

	// 消息内容
	private String messageContent;

	// 状态
	private String status;

	public People getPerson() {
		return person;
	}

	public void setPerson(People person) {
		this.person = person;
	}

	public People getSender() {
		return sender;
	}

	public void setSender(People sender) {
		this.sender = sender;
	}

	public Date getReceiveTime() {
		return receiveTime;
	}

	public void setReceiveTime(Date receiveTime) {
		this.receiveTime = receiveTime;
	}

	public String getMessageContent() {
		return messageContent;
	}

	public void setMessageContent(String messageContent) {
		this.messageContent = messageContent;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

}
